package com.xps.and.yuntong.Ui;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.xps.and.yuntong.R;
import com.xps.and.yuntong.base.BaseActivity;

/**
 * Created by administrator on 2017-12-12.
 */

public class MoreShezhiKefuActivity extends BaseActivity implements View.OnClickListener {

    private ImageView iv_fanhui, iv_right;
    private TextView tv_middle,tv_more_shezhi_phone;
    private LinearLayout ll_boda_phone;

    @Override
    protected int getLayout() {
        return R.layout.activity_more_shezhi_kefu;
    }

    @Override
    protected void setData() {

    }

    @Override
    protected void init(Bundle inBundle) {
        initView();
    }

    private void initView() {

        iv_fanhui = (ImageView) findViewById(R.id.iv_fanhui);
        iv_right = (ImageView) findViewById(R.id.iv_right);

        tv_middle = (TextView) findViewById(R.id.tv_more_shezhi_phone);
        tv_middle.setText(R.string.ke_fu);
        tv_more_shezhi_phone = (TextView) findViewById(R.id.tv_more_shezhi_phone);
        ll_boda_phone = (LinearLayout) findViewById(R.id.ll_boda_phone);


        iv_fanhui.setOnClickListener(this);
        iv_right.setOnClickListener(this);
        ll_boda_phone.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

        switch (v.getId()) {
            case R.id.iv_fanhui:

                finish();
                break;

            case R.id.iv_right:


                break;

            case R.id.ll_boda_phone:
                Intent phoneIntent = new Intent("android.intent.action.CALL",
                        Uri.parse("tel: 15110200250"));
                startActivity(phoneIntent);
                break;
        }

    }
}
